package com.sgb.kjwl.model.entity.transport.order;

import android.text.TextUtils;

import com.swgk.core.util.StringUtil;

import java.io.Serializable;

/**
 * @Author : 熊丽
 * @date :2021/3/12 0012$ 14:13$
 * @Description ://运输订单实体$
 */
public class MyOrderEntity implements Serializable {
    /**
     * 订单号
     */
    private String orderNo;
    /**
     * 车主userNo
     */
    private String userNo;
    /**
     * 订单状态 0待付款 1待确认  2待发车 3运输中 4已完成 5已取消
     */
    private Integer status;
    /**
     * 司机姓名
     */
    private String userName;
    /**
     * 市名称
     */
    private String cityName;
    /**
     * 区名称
     */
    private String districtName;
    /**
     * 区名称
     */
    private String destCityName;
    /**
     * 区名称
     */
    private String destDistrictName;
    /**
     * 总运程
     */
    private String totalDistance;
    /**
     * 货物类型
     */
    private String goodsModeName;
    /**
     * 重量
     */
    private String weight;
    /**
     * 体积
     */
    private String volume;
    /**
     * 发货开始时间
     */
    private Long shipmentTime;
    /**
     * 发货截止时间
     */
    private Long shipmentEndTime;
    /**
     * 信息费
     */
    private String messagePrice;
    /**
     * 总运费
     */
    private String allFreight;
    /**
     * 车牌号
     */
    private String carNumber;
    /**
     * 车型
     */
    private String carTypeName;
    /**
     * 车长
     */
    private String carLenName;
    private String companyName;

    /**
     * 装车开始时间点
     * 25——表示全天
     */
    private int startPointTime;

    /**
     * 装车结束时间点
     * 25——表示全天
     */
    private int endPointTime;
    private String secondGoodsTypeName;//2.1.4 新增 二级货物类型

    private Integer quotationOfferType;//报价/接单的类型 1 企业 2 团队 3 个人

    /**
     * 信息费联动订单编号
     */
    private String messageOrderNo;

    private Long paymentEndTime;//支付信息费的最后时间

    public Long getPaymentEndTime() {
        return paymentEndTime;
    }

    public String getMessageOrderNo() {
        return messageOrderNo;
    }

    public Integer getQuotationOfferType() {
        return quotationOfferType;
    }

    public int getStartPointTime() {
        return startPointTime;
    }

    public void setStartPointTime(int startPointTime) {
        this.startPointTime = startPointTime;
    }

    public int getEndPointTime() {
        return endPointTime;
    }

    public void setEndPointTime(int endPointTime) {
        this.endPointTime = endPointTime;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCityName() {
        if (TextUtils.isEmpty(cityName)){
            return "";
        }
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getDistrictName() {
        if (TextUtils.isEmpty(districtName)){
            return "";
        }
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getDestCityName() {
        if (TextUtils.isEmpty(destCityName)){
            return "";
        }
        return destCityName;
    }

    public void setDestCityName(String destCityName) {
        this.destCityName = destCityName;
    }

    public String getDestDistrictName() {
        if (TextUtils.isEmpty(destDistrictName)){
            return "";
        }
        return destDistrictName;
    }

    public void setDestDistrictName(String destDistrictName) {
        this.destDistrictName = destDistrictName;
    }

    public String getTotalDistance() {
        return TextUtils.isEmpty(totalDistance)?" ":"约"+ (Double.valueOf(totalDistance) < 1000 ? "1km以内" : StringUtil.fromatUpDistance(totalDistance) + "km");
    }

    public void setTotalDistance(String totalDistance) {
        this.totalDistance = totalDistance;
    }

    public String getGoodsModeName() {
        if (TextUtils.isEmpty(goodsModeName)){
            return "";
        }
        return goodsModeName;
    }

    public void setGoodsModeName(String goodsModeName) {
        this.goodsModeName = goodsModeName;
    }

    public String getWeight() {
        if (TextUtils.isEmpty(weight)){
            return "";
        }
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getVolume() {
        if (TextUtils.isEmpty(volume)){
            return "";
        }
        return volume;
    }

    public void setVolume(String volume) {
        this.volume = volume;
    }

    public Long getShipmentTime() {
        return shipmentTime;
    }

    public void setShipmentTime(Long shipmentTime) {
        this.shipmentTime = shipmentTime;
    }

    public Long getShipmentEndTime() {
        return shipmentEndTime;
    }

    public void setShipmentEndTime(Long shipmentEndTime) {
        this.shipmentEndTime = shipmentEndTime;
    }

    public String getMessagePrice() {
        return messagePrice;
    }

    public void setMessagePrice(String messagePrice) {
        this.messagePrice = messagePrice;
    }

    public String getAllFreight() {
        return allFreight;
    }

    public void setAllFreight(String allFreight) {
        this.allFreight = allFreight;
    }

    public String getCarNumber() {
        if (carNumber==null)
            return "";
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getCarTypeName() {
        if (carTypeName==null)
            return "";
        return carTypeName;
    }

    public void setCarTypeName(String carTypeName) {
        this.carTypeName = carTypeName;
    }

    public String getCarLenName() {
        if (carLenName==null)
            return "";
        return carLenName;
    }

    public void setCarLenName(String carLenName) {
        this.carLenName = carLenName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getSecondGoodsTypeName() {
        return secondGoodsTypeName;
    }

    public void setSecondGoodsTypeName(String secondGoodsTypeName) {
        this.secondGoodsTypeName = secondGoodsTypeName;
    }

    @Override
    public String toString() {
        return "MyOrderEntity{" +
                "orderNo='" + orderNo + '\'' +
                ", userNo='" + userNo + '\'' +
                ", status=" + status +
                ", userName='" + userName + '\'' +
                ", cityName='" + cityName + '\'' +
                ", districtName='" + districtName + '\'' +
                ", destCityName='" + destCityName + '\'' +
                ", destDistrictName='" + destDistrictName + '\'' +
                ", totalDistance='" + totalDistance + '\'' +
                ", goodsModeName='" + goodsModeName + '\'' +
                ", weight='" + weight + '\'' +
                ", volume='" + volume + '\'' +
                ", shipmentTime=" + shipmentTime +
                ", shipmentEndTime=" + shipmentEndTime +
                ", messagePrice='" + messagePrice + '\'' +
                ", allFreight='" + allFreight + '\'' +
                ", carNumber='" + carNumber + '\'' +
                ", carTypeName='" + carTypeName + '\'' +
                ", carLenName='" + carLenName + '\'' +
                ", companyName='" + companyName + '\'' +
                '}';
    }
}
